<?php
/**
 * Debug utility
 * @author Joe Minichino <joe@dsforge.net>
 * 
 */

class Debug {
    public static $output;

    public static function log($content){
        self::$output .= $content."\n";
    }

    public static function flush(){
        if(DEBUG) {
            echo "<div id='log_panel'><pre>" . self::$output . "</pre></div>";
        }
    }

}